<?php
/**
 * Created by PhpStorm.
 * User: divya
 * Date: 2018/7/25
 * Time: 下午2:39
 */

namespace app\api\validate;


use think\Validate;

class IDMustBePositiveInt extends BaseValidate
{
    public $message = [
        'id'=>'id必须是正整数'
    ];
    protected $rule = [
        'id'=>'require|isPositiveInteger'
    ];
}